import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import top.scauwlt.annotation.RpcScan;
import top.scauwlt.remoting.transport.server.NettyRpcServer;

/**
 * @Author wmm
 * @Date 2022/7/27 22:22
 */
@RpcScan(basePackage = {"top.scauwlt"})
public class NettyRpcServerMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(NettyRpcServerMain.class);
        NettyRpcServer nettyRpcServer = (NettyRpcServer) applicationContext.getBean("nettyRpcServer");
        nettyRpcServer.start();
    }
}
